/**
 * Created by gim on 14-2-5.
 */
var	mongo = require('mongoskin');

var db = mongo.db("localhost:27017/?auto_reconnect=false",{
    database: 'test',
    safe: true
}, {
    connectArbiter: false,
    socketOptions: {
        timeout: 2000
    }
});

exports.db = db;
exports.toGlobalDb = function(){
    global.db = db;
};